package com.zhenhunfan.spring.boot.samples.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhenhunfan
 * @since 2023-11-14 16:49:08
 */
@TableName("sys_api")
public class Api implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    /**
     * 控制器名称
     */
    private String controller;

    /**
     * GET;POST;DELETE;PUT
     */
    private String method;

    /**
     * api 路径
     */
    private String url;

    private String description;

    /**
     * 校验方式：NO-无需校验；BasicAuth-BasicAuth; Login-登录；Role-角色；Third-第三方
     */
    private String checker;

    /**
     * 用于外部校验的 GET url
     */
    private String checkUrl;

    /**
     * 角色名称
     */
    private String roleName;

    private Boolean deleted;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getController() {
        return controller;
    }

    public void setController(String controller) {
        this.controller = controller;
    }

    public String getMethod() {
        return method;
    }

    public void setMethod(String method) {
        this.method = method;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getChecker() {
        return checker;
    }

    public void setChecker(String checker) {
        this.checker = checker;
    }

    public String getCheckUrl() {
        return checkUrl;
    }

    public void setCheckUrl(String checkUrl) {
        this.checkUrl = checkUrl;
    }

    public String getRoleName() {
        return roleName;
    }

    public void setRoleName(String roleName) {
        this.roleName = roleName;
    }

    public Boolean getDeleted() {
        return deleted;
    }

    public void setDeleted(Boolean deleted) {
        this.deleted = deleted;
    }

    @Override
    public String toString() {
        return "Api{" +
            "id = " + id +
            ", controller = " + controller +
            ", method = " + method +
            ", url = " + url +
            ", description = " + description +
            ", checker = " + checker +
            ", checkUrl = " + checkUrl +
            ", roleName = " + roleName +
            ", deleted = " + deleted +
        "}";
    }
}
